﻿using RuoVea.ExDto.Entity;
using RuoVea.ExEnum;
using SqlSugar;

namespace RuoVea.Auth.Entity
{
    /// <summary>
    ///  含租户基础 模型
    /// </summary>
    public class DBEntity : DEntityBase
    {
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true)]
        public override long Id { get; set; }
        

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdatedUserId", ColumnDescription = "修改者Id")]
        public override long EditorUserId
        {
            get;
            set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "CreatedTime", ColumnDescription = "创建时间")]
        public override DateTime? CreateTime
        {
            get;
            set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnName = "UpdatedTime", ColumnDescription = "更新时间")]
        public override DateTime? EditeTime
        {
            get;
            set;
        }

        /// <summary>
        /// 创建用户
        /// </summary>
        [SugarColumn(ColumnName = "CreatedUserName", ColumnDescription = "创建用户")]
        public virtual string CreatedUserName { get; set; }

        /// <summary>
        /// 编辑用户
        /// </summary>
        [SugarColumn(ColumnName = "UpdatedUserName", ColumnDescription = "编辑用户")]
        public virtual string EditorUserName { get; set; }


        /// <summary>
        /// 软删除标记
        /// </summary>
        [SugarColumn(ColumnName = "IsDeleted", ColumnDescription = "软删除标记")]
        public virtual IsDelete? Deleted { get; set; }
    }
}
